<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let num = 123;
        let arr = [1, 2, 3]
        let fun = function () { }
        let obj = {};
        const map1 = new Map();
        map1.set(num, "q1");
        map1.set(arr, "q2");
        map1.set(fun, "q3");
        map1.set(obj, "q4");
        map1.set("aaa","q5");
        // for (const key of map1.keys()) {
        //     console.log(key);            
        // }
        const map2=new Map([
            ["s1","as1"],
            ["s2","as2"],
            ["s3","as3"],
            ["s4","as4"]
        ]);
        console.log(...map2.values());
        let arr1=[...map2.values()];
        let arr2=[...map2.keys()];
        let arr3=[...map2.entries()]
        console.log(arr3);
        // (4) ["as1", "as2", "as3", "as4"] 
        // (4) ["s1", "s2", "s3", "s4"]
        
    </script>
</body>

</html>